package com.duoec.magichour.mapper;

import com.duoec.magichour.core.BaseMapper;
import com.duoec.magichour.pojo.ArticleCate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleCateMapper extends BaseMapper<ArticleCate, Integer> {
    /**
     * 获取所有的文章分类列表
     * @return
     */
    List<ArticleCate> findAll();

    /**
     * 通过ID删除记录
     * @param id 文章分类ID
     */
    void delete(@Param("id") int id);
}